package com.fzshang.shopping.commen.mapper;

import com.fzshang.shopping.commen.bean.Classification;
import com.fzshang.shopping.commen.bean.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 后台用户 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-03
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {


    /**
     * @param account
     * @param passWord
     * @return user登陆
     */
    UserInfo userLogin(@Param("account") String account, @Param("passWord") String passWord);
    /**
     * @param requestUserName
     * @return 判断用户名是否为空
     */
    UserInfo userNameIsNall(@Param("account") String requestUserName);
    /**
     * @param requestPassWord
     * @param requestUserName
     * @return 判断用户名对应的密码是否能错误
     */
    UserInfo passWordIsNall(@Param("password") String requestPassWord, @Param("account") String requestUserName);

    /**
     * @param map
     * @return 商家管理
     */
    List<UserInfo> selectMyPage(@Param("param") Map map);
    Integer  countMyPage (@Param("param")Map map);


    /**
     * @param map
     * @return 商家审核
     */
    List<UserInfo> selectMyPage1(@Param("param") Map map);
    Integer  countMyPage1 (@Param("param")Map map);

    /**
     * @param time
     * @return 商家统计
     */
    Double selectByTimeSumMoney(@Param("time")String time);

    /**
     * @param time
     * @return 销售统计
     */
    Double selectByTimeSumMoneySale(@Param("time")String time);

}
